const { readFileSync } = require("fs")
const { resolve } = require("path")
const { parse } = require("yaml")

function getMetaInfo() {

    const pth = resolve(__dirname, "./promp.yaml")
    const content = readFileSync(pth, { encoding: "utf-8" })
    // const treeCode = parse(content)
    return {
        title: "我的标题",
        treeCode: content
    }
}

module.exports = {
    getMetaInfo
}